package com.just.user_server.controller;

import com.just.user_server.model.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : baibaiwucahng
 * @date : 2020/3/4  0:01
 */
@RestController
@RequestMapping("/api/v1/user")
public class UserController {

    @PostMapping("/login")
    public User Login(@RequestBody User user) {
        System.out.println(user);
        return user;
    }
}
